<!--
描述：库房
开发人：zangyanming
开发日期：2018年8月7日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="buyer" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            div.s-flex
                el-form-item(label="单位代码" prop="code" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.code" readonly)
                el-form-item(label="单位名称" prop="name" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.name" readonly)
            div.s-flex
                el-form-item(label="联系人" prop="contact" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.contact" readonly)
                el-form-item(label="电话" prop="tel" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.tel" readonly)
            div.s-flex
                el-form-item(label="传真" prop="fax" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.fax" readonly)
                el-form-item(label="邮编" prop="zipCode" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.zipCode" readonly)
            div.s-flex
                el-form-item(label="地址" prop="addr" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.addr" readonly)
                el-form-item.s-flex_item(label="是否限非班级" prop="flag" v-bind:label-width="labelWidth")
                    div(style="text-align:center")
                        el-switch.s-flex_item(v-model="formModel.flag" active-text="是" inactive-text="否" active-value="1" inactive-value="0" disabled)
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'

    export default {
        name: 'BuyerView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                labelWidth: '140px'
            }
        },
        methods: {
        }
    }
</script>
